home *** CD-ROM | disk | FTP | other *** search
/ Enigma Amiga Life 109 / EnigmaAmiga109CD.iso / dalla rivista / host contacted / jikes.lha / jikes-1.11 / src / configure < prev    next >
Text File  |  2000-01-16  |  70KB  |  2,326 lines

  1. #! /bin/sh
  2.  
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated automatically using autoconf version 2.13 
  5. # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  6. #
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9.  
  10. # Defaults:
  11. ac_help=
  12. ac_default_prefix=/usr/local
  13. # Any additions from configure.in:
  14. ac_help="$ac_help
  15.   --with-jikespg=PROG     location of jikes parser generator (optional)"
  16. ac_help="$ac_help
  17.   --with-icc=PROG         use the IBM Cset++ compiler, optional PROG can be given instead of searching on the PATH"
  18. ac_help="$ac_help
  19.   --with-CC=PROG          use the AT&T CC compiler, optional PROG can be given instead of searching on the PATH"
  20. ac_help="$ac_help
  21.   --with-mingwin          use the mingwin32 compiler environment"
  22. ac_help="$ac_help
  23.   --enable-debug          build with debugging symbols"
  24.  
  25. # Initialize some variables set by options.
  26. # The variables have the same names as the options, with
  27. # dashes changed to underlines.
  28. build=NONE
  29. cache_file=./config.cache
  30. exec_prefix=NONE
  31. host=NONE
  32. no_create=
  33. nonopt=NONE
  34. no_recursion=
  35. prefix=NONE
  36. program_prefix=NONE
  37. program_suffix=NONE
  38. program_transform_name=s,x,x,
  39. silent=
  40. site=
  41. srcdir=
  42. target=NONE
  43. verbose=
  44. x_includes=NONE
  45. x_libraries=NONE
  46. bindir='${exec_prefix}/bin'
  47. sbindir='${exec_prefix}/sbin'
  48. libexecdir='${exec_prefix}/libexec'
  49. datadir='${prefix}/share'
  50. sysconfdir='${prefix}/etc'
  51. sharedstatedir='${prefix}/com'
  52. localstatedir='${prefix}/var'
  53. libdir='${exec_prefix}/lib'
  54. includedir='${prefix}/include'
  55. oldincludedir='/usr/include'
  56. infodir='${prefix}/info'
  57. guidedir='${prefix}/guide'
  58. htmldir='${prefix}/html'
  59. psdir='${prefix}/ps'
  60. dvidir='${prefix}/dvi'
  61. mandir='${prefix}/man'
  62.  
  63. # Initialize some other variables.
  64. subdirs=
  65. MFLAGS= MAKEFLAGS=
  66. SHELL=${CONFIG_SHELL-/bin/sh}
  67. # Maximum number of lines to put in a shell here document.
  68. ac_max_here_lines=12
  69.  
  70. ac_prev=
  71. for ac_option
  72. do
  73.  
  74.   # If the previous option needs an argument, assign it.
  75.   if test -n "$ac_prev"; then
  76.     eval "$ac_prev=\$ac_option"
  77.     ac_prev=
  78.     continue
  79.   fi
  80.  
  81.   case "$ac_option" in
  82.   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  83.   *) ac_optarg= ;;
  84.   esac
  85.  
  86.   # Accept the important Cygnus configure options, so we can diagnose typos.
  87.  
  88.   case "$ac_option" in
  89.  
  90.   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  91.     ac_prev=bindir ;;
  92.   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  93.     bindir="$ac_optarg" ;;
  94.  
  95.   -build | --build | --buil | --bui | --bu)
  96.     ac_prev=build ;;
  97.   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  98.     build="$ac_optarg" ;;
  99.  
  100.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  101.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  102.     ac_prev=cache_file ;;
  103.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  104.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  105.     cache_file="$ac_optarg" ;;
  106.  
  107.   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  108.     ac_prev=datadir ;;
  109.   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  110.   | --da=*)
  111.     datadir="$ac_optarg" ;;
  112.  
  113.   -disable-* | --disable-*)
  114.     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  115.     # Reject names that are not valid shell variable names.
  116.     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  117.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  118.     fi
  119.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  120.     eval "enable_${ac_feature}=no" ;;
  121.  
  122.   -enable-* | --enable-*)
  123.     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  124.     # Reject names that are not valid shell variable names.
  125.     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  126.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  127.     fi
  128.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  129.     case "$ac_option" in
  130.       *=*) ;;
  131.       *) ac_optarg=yes ;;
  132.     esac
  133.     eval "enable_${ac_feature}='$ac_optarg'" ;;
  134.  
  135.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  136.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  137.   | --exec | --exe | --ex)
  138.     ac_prev=exec_prefix ;;
  139.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  140.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  141.   | --exec=* | --exe=* | --ex=*)
  142.     exec_prefix="$ac_optarg" ;;
  143.  
  144.   -gas | --gas | --ga | --g)
  145.     # Obsolete; use --with-gas.
  146.     with_gas=yes ;;
  147.  
  148.   -help | --help | --hel | --he)
  149.     # Omit some internal or obsolete options to make the list less imposing.
  150.     # This message is too long to be a string in the A/UX 3.1 sh.
  151.     cat << EOF
  152. Usage: configure [options] [host]
  153. Options: [defaults in brackets after descriptions]
  154. Configuration:
  155.   --cache-file=FILE       cache test results in FILE
  156.   --help                  print this message
  157.   --no-create             do not create output files
  158.   --quiet, --silent       do not print \`checking...' messages
  159.   --version               print the version of autoconf that created configure
  160. Directory and file names:
  161.   --prefix=PREFIX         install architecture-independent files in PREFIX
  162.                           [$ac_default_prefix]
  163.   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  164.                           [same as prefix]
  165.   --bindir=DIR            user executables in DIR [EPREFIX/bin]
  166.   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  167.   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  168.   --datadir=DIR           read-only architecture-independent data in DIR
  169.                           [PREFIX/share]
  170.   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  171.   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
  172.                           [PREFIX/com]
  173.   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  174.   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  175.   --includedir=DIR        C header files in DIR [PREFIX/include]
  176.   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  177.   --infodir=DIR           info documentation in DIR [PREFIX/info]
  178.   --guidedir=DIR          Amigaguide documentation in DIR [PREFIX/guide]
  179.   --htmldir=DIR           HTML documentation in DIR [PREFIX/html]
  180.   --psdir=DIR             postscript documentation in DIR [PREFIX/ps]
  181.   --dvidir=DIR            TeX dvi documentation in DIR [PREFIX/dvi]
  182.   --mandir=DIR            man documentation in DIR [PREFIX/man]
  183.   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  184.   --program-prefix=PREFIX prepend PREFIX to installed program names
  185.   --program-suffix=SUFFIX append SUFFIX to installed program names
  186.   --program-transform-name=PROGRAM
  187.                           run sed PROGRAM on installed program names
  188. EOF
  189.     cat << EOF
  190. Host type:
  191.   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  192.   --host=HOST             configure for HOST [guessed]
  193.   --target=TARGET         configure for TARGET [TARGET=HOST]
  194. Features and packages:
  195.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  196.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  197.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  198.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  199.   --x-includes=DIR        X include files are in DIR
  200.   --x-libraries=DIR       X library files are in DIR
  201. EOF
  202.     if test -n "$ac_help"; then
  203.       echo "--enable and --with options recognized:$ac_help"
  204.     fi
  205.     exit 0 ;;
  206.  
  207.   -host | --host | --hos | --ho)
  208.     ac_prev=host ;;
  209.   -host=* | --host=* | --hos=* | --ho=*)
  210.     host="$ac_optarg" ;;
  211.  
  212.   -includedir | --includedir | --includedi | --included | --include \
  213.   | --includ | --inclu | --incl | --inc)
  214.     ac_prev=includedir ;;
  215.   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  216.   | --includ=* | --inclu=* | --incl=* | --inc=*)
  217.     includedir="$ac_optarg" ;;
  218.  
  219.   -infodir | --infodir | --infodi | --infod | --info | --inf)
  220.     ac_prev=infodir ;;
  221.   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  222.     infodir="$ac_optarg" ;;
  223.  
  224.  -guidedir | --guidedir | --guidedi | --guided | --guide | --gui)
  225.    ac_prev=guidedir ;;
  226.  -guidedir=* | --guidedir=* | --guidedi=* | --guided=* | --guide=* |--gui=*)+    guidedir="$ac_optarg" ;;
  227.  
  228.  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm)
  229.    ac_prev=htmldir ;;
  230.  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* |--htm=*)+    htmldir="$ac_optarg" ;;
  231.  
  232.  -psdir | --psdir | --psdi | --psd | --ps)
  233.    ac_prev=psdir ;;
  234.  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)+    psdir="$ac_optarg" ;;
  235.  
  236.  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  237.    ac_prev=dvidir ;;
  238.  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* |--dv=*)+    dvidir="$ac_optarg" ;;
  239.  
  240.   -libdir | --libdir | --libdi | --libd)
  241.     ac_prev=libdir ;;
  242.   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  243.     libdir="$ac_optarg" ;;
  244.  
  245.   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  246.   | --libexe | --libex | --libe)
  247.     ac_prev=libexecdir ;;
  248.   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  249.   | --libexe=* | --libex=* | --libe=*)
  250.     libexecdir="$ac_optarg" ;;
  251.  
  252.   -localstatedir | --localstatedir | --localstatedi | --localstated \
  253.   | --localstate | --localstat | --localsta | --localst \
  254.   | --locals | --local | --loca | --loc | --lo)
  255.     ac_prev=localstatedir ;;
  256.   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  257.   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  258.   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  259.     localstatedir="$ac_optarg" ;;
  260.  
  261.   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  262.     ac_prev=mandir ;;
  263.   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  264.     mandir="$ac_optarg" ;;
  265.  
  266.   -nfp | --nfp | --nf)
  267.     # Obsolete; use --without-fp.
  268.     with_fp=no ;;
  269.  
  270.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  271.   | --no-cr | --no-c)
  272.     no_create=yes ;;
  273.  
  274.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  275.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  276.     no_recursion=yes ;;
  277.  
  278.   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  279.   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  280.   | --oldin | --oldi | --old | --ol | --o)
  281.     ac_prev=oldincludedir ;;
  282.   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  283.   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  284.   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  285.     oldincludedir="$ac_optarg" ;;
  286.  
  287.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  288.     ac_prev=prefix ;;
  289.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  290.     prefix="$ac_optarg" ;;
  291.  
  292.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  293.   | --program-pre | --program-pr | --program-p)
  294.     ac_prev=program_prefix ;;
  295.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  296.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  297.     program_prefix="$ac_optarg" ;;
  298.  
  299.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  300.   | --program-suf | --program-su | --program-s)
  301.     ac_prev=program_suffix ;;
  302.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  303.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  304.     program_suffix="$ac_optarg" ;;
  305.  
  306.   -program-transform-name | --program-transform-name \
  307.   | --program-transform-nam | --program-transform-na \
  308.   | --program-transform-n | --program-transform- \
  309.   | --program-transform | --program-transfor \
  310.   | --program-transfo | --program-transf \
  311.   | --program-trans | --program-tran \
  312.   | --progr-tra | --program-tr | --program-t)
  313.     ac_prev=program_transform_name ;;
  314.   -program-transform-name=* | --program-transform-name=* \
  315.   | --program-transform-nam=* | --program-transform-na=* \
  316.   | --program-transform-n=* | --program-transform-=* \
  317.   | --program-transform=* | --program-transfor=* \
  318.   | --program-transfo=* | --program-transf=* \
  319.   | --program-trans=* | --program-tran=* \
  320.   | --progr-tra=* | --program-tr=* | --program-t=*)
  321.     program_transform_name="$ac_optarg" ;;
  322.  
  323.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  324.   | -silent | --silent | --silen | --sile | --sil)
  325.     silent=yes ;;
  326.  
  327.   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  328.     ac_prev=sbindir ;;
  329.   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  330.   | --sbi=* | --sb=*)
  331.     sbindir="$ac_optarg" ;;
  332.  
  333.   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  334.   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  335.   | --sharedst | --shareds | --shared | --share | --shar \
  336.   | --sha | --sh)
  337.     ac_prev=sharedstatedir ;;
  338.   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  339.   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  340.   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  341.   | --sha=* | --sh=*)
  342.     sharedstatedir="$ac_optarg" ;;
  343.  
  344.   -site | --site | --sit)
  345.     ac_prev=site ;;
  346.   -site=* | --site=* | --sit=*)
  347.     site="$ac_optarg" ;;
  348.  
  349.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  350.     ac_prev=srcdir ;;
  351.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  352.     srcdir="$ac_optarg" ;;
  353.  
  354.   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  355.   | --syscon | --sysco | --sysc | --sys | --sy)
  356.     ac_prev=sysconfdir ;;
  357.   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  358.   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  359.     sysconfdir="$ac_optarg" ;;
  360.  
  361.   -target | --target | --targe | --targ | --tar | --ta | --t)
  362.     ac_prev=target ;;
  363.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  364.     target="$ac_optarg" ;;
  365.  
  366.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  367.     verbose=yes ;;
  368.  
  369.   -version | --version | --versio | --versi | --vers)
  370.     echo "configure generated by autoconf version 2.13"
  371.     exit 0 ;;
  372.  
  373.   -with-* | --with-*)
  374.     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  375.     # Reject names that are not valid shell variable names.
  376.     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  377.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  378.     fi
  379.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  380.     case "$ac_option" in
  381.       *=*) ;;
  382.       *) ac_optarg=yes ;;
  383.     esac
  384.     eval "with_${ac_package}='$ac_optarg'" ;;
  385.  
  386.   -without-* | --without-*)
  387.     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  388.     # Reject names that are not valid shell variable names.
  389.     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  390.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  391.     fi
  392.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  393.     eval "with_${ac_package}=no" ;;
  394.  
  395.   --x)
  396.     # Obsolete; use --with-x.
  397.     with_x=yes ;;
  398.  
  399.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  400.   | --x-incl | --x-inc | --x-in | --x-i)
  401.     ac_prev=x_includes ;;
  402.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  403.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  404.     x_includes="$ac_optarg" ;;
  405.  
  406.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  407.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  408.     ac_prev=x_libraries ;;
  409.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  410.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  411.     x_libraries="$ac_optarg" ;;
  412.  
  413.   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  414.     ;;
  415.  
  416.   *)
  417.     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  418.       echo "configure: warning: $ac_option: invalid host type" 1>&2
  419.     fi
  420.     if test "x$nonopt" != xNONE; then
  421.       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  422.     fi
  423.     nonopt="$ac_option"
  424.     ;;
  425.  
  426.   esac
  427. done
  428.  
  429. if test -n "$ac_prev"; then
  430.   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  431. fi
  432.  
  433. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  434.  
  435. # File descriptor usage:
  436. # 0 standard input
  437. # 1 file creation
  438. # 2 errors and warnings
  439. # 3 some systems may open it to /dev/tty
  440. # 4 used on the Kubota Titan
  441. # 6 checking for... messages and results
  442. # 5 compiler messages saved in config.log
  443. if test "$silent" = yes; then
  444.   exec 6>/dev/null
  445. else
  446.   exec 6>&1
  447. fi
  448. exec 5>./config.log
  449.  
  450. echo "\
  451. This file contains any messages produced by compilers while
  452. running configure, to aid debugging if configure makes a mistake.
  453. " 1>&5
  454.  
  455. # Strip out --no-create and --no-recursion so they do not pile up.
  456. # Also quote any args containing shell metacharacters.
  457. ac_configure_args=
  458. for ac_arg
  459. do
  460.   case "$ac_arg" in
  461.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  462.   | --no-cr | --no-c) ;;
  463.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  464.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  465.   *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  466.   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  467.   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  468.   esac
  469. done
  470.  
  471. # NLS nuisances.
  472. # Only set these to C if already set.  These must not be set unconditionally
  473. # because not all systems understand e.g. LANG=C (notably SCO).
  474. # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  475. # Non-C LC_CTYPE values break the ctype check.
  476. if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  477. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  478. if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  479. if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
  480.  
  481. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  482. rm -rf conftest* confdefs.h
  483. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  484. echo > confdefs.h
  485.  
  486. # A filename unique to this package, relative to the directory that
  487. # configure is in, which we can look for to find out if srcdir is correct.
  488. ac_unique_file=jikes.cpp
  489.  
  490. # Find the source files, if location was not specified.
  491. if test -z "$srcdir"; then
  492.   ac_srcdir_defaulted=yes
  493.   # Try the directory containing this script, then its parent.
  494.   ac_prog=$0
  495.   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  496.   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  497.   srcdir=$ac_confdir
  498.   if test ! -r $srcdir/$ac_unique_file; then
  499.     srcdir=..
  500.   fi
  501. else
  502.   ac_srcdir_defaulted=no
  503. fi
  504. if test ! -r $srcdir/$ac_unique_file; then
  505.   if test "$ac_srcdir_defaulted" = yes; then
  506.     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  507.   else
  508.     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  509.   fi
  510. fi
  511. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  512.  
  513. # Prefer explicitly selected file to automatically selected ones.
  514. if test -z "$CONFIG_SITE"; then
  515.   if test "x$prefix" != xNONE; then
  516.     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  517.   else
  518.     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  519.   fi
  520. fi
  521. for ac_site_file in $CONFIG_SITE; do
  522.   if test -r "$ac_site_file"; then
  523.     echo "loading site script $ac_site_file"
  524.     . "$ac_site_file"
  525.   fi
  526. done
  527.  
  528. if test -r "$cache_file"; then
  529.   echo "loading cache $cache_file"
  530.   . $cache_file
  531. else
  532.   echo "creating cache $cache_file"
  533.   > $cache_file
  534. fi
  535.  
  536. ac_ext=c
  537. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  538. ac_cpp='$CPP $CPPFLAGS'
  539. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  540. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  541. cross_compiling=$ac_cv_prog_cc_cross
  542.  
  543. ac_exeext=
  544. ac_objext=o
  545. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  546.   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  547.   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  548.     ac_n= ac_c='
  549. ' ac_t='    '
  550.   else
  551.     ac_n=-n ac_c= ac_t=
  552.   fi
  553. else
  554.   ac_n= ac_c='\c' ac_t=
  555. fi
  556.  
  557.  
  558.  
  559.  
  560. # Convert srcdir into full path name
  561. srcdir=`cd $srcdir ; pwd`
  562. echo "srcdir is $srcdir"
  563.  
  564. # Let configure look for a c and c++ compiler and find the system
  565. # defined object and executable extensions. Also do some extra
  566. # checks to find out if we are running in a cygwin environment
  567.  
  568. ac_ext=C
  569. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  570. ac_cpp='$CXXCPP $CPPFLAGS'
  571. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  572. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  573. cross_compiling=$ac_cv_prog_cxx_cross
  574.  
  575. for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
  576. do
  577. # Extract the first word of "$ac_prog", so it can be a program name with args.
  578. set dummy $ac_prog; ac_word=$2
  579. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  580. echo "configure:581: checking for $ac_word" >&5
  581. if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
  582.   echo $ac_n "(cached) $ac_c" 1>&6
  583. else
  584.   if test -n "$CXX"; then
  585.   ac_cv_prog_CXX="$CXX" # Let the user override the test.
  586. else
  587.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  588.   ac_dummy="$PATH"
  589.   for ac_dir in $ac_dummy; do
  590.     test -z "$ac_dir" && ac_dir=.
  591.     if test -f $ac_dir/$ac_word; then
  592.       ac_cv_prog_CXX="$ac_prog"
  593.       break
  594.     fi
  595.   done
  596.   IFS="$ac_save_ifs"
  597. fi
  598. fi
  599. CXX="$ac_cv_prog_CXX"
  600. if test -n "$CXX"; then
  601.   echo "$ac_t""$CXX" 1>&6
  602. else
  603.   echo "$ac_t""no" 1>&6
  604. fi
  605.  
  606. test -n "$CXX" && break
  607. done
  608. test -n "$CXX" || CXX="gcc"
  609.  
  610.  
  611. echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  612. echo "configure:613: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
  613.  
  614. ac_ext=C
  615. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  616. ac_cpp='$CXXCPP $CPPFLAGS'
  617. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  618. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  619. cross_compiling=$ac_cv_prog_cxx_cross
  620.  
  621. cat > conftest.$ac_ext << EOF
  622.  
  623. #line 624 "configure"
  624. #include "confdefs.h"
  625.  
  626. int main(){return(0);}
  627. EOF
  628. if { (eval echo configure:629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  629.   ac_cv_prog_cxx_works=yes
  630.   # If we can't run a trivial program, we are probably using a cross compiler.
  631.   if (./conftest; exit) 2>/dev/null; then
  632.     ac_cv_prog_cxx_cross=no
  633.   else
  634.     ac_cv_prog_cxx_cross=yes
  635.   fi
  636. else
  637.   echo "configure: failed program was:" >&5
  638.   cat conftest.$ac_ext >&5
  639.   ac_cv_prog_cxx_works=no
  640. fi
  641. rm -fr conftest*
  642. ac_ext=C
  643. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  644. ac_cpp='$CXXCPP $CPPFLAGS'
  645. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  646. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  647. cross_compiling=$ac_cv_prog_cxx_cross
  648.  
  649. echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
  650. if test $ac_cv_prog_cxx_works = no; then
  651.   { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
  652. fi
  653. echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  654. echo "configure:655: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
  655. echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
  656. cross_compiling=$ac_cv_prog_cxx_cross
  657.  
  658. echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
  659. echo "configure:660: checking whether we are using GNU C++" >&5
  660. if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
  661.   echo $ac_n "(cached) $ac_c" 1>&6
  662. else
  663.   cat > conftest.C <<EOF
  664. #ifdef __GNUC__
  665.   yes;
  666. #endif
  667. EOF
  668. if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:669: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  669.   ac_cv_prog_gxx=yes
  670. else
  671.   ac_cv_prog_gxx=no
  672. fi
  673. fi
  674.  
  675. echo "$ac_t""$ac_cv_prog_gxx" 1>&6
  676.  
  677. if test $ac_cv_prog_gxx = yes; then
  678.   GXX=yes
  679. else
  680.   GXX=
  681. fi
  682.  
  683. ac_test_CXXFLAGS="${CXXFLAGS+set}"
  684. ac_save_CXXFLAGS="$CXXFLAGS"
  685. CXXFLAGS=
  686. echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
  687. echo "configure:688: checking whether ${CXX-g++} accepts -g" >&5
  688. if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
  689.   echo $ac_n "(cached) $ac_c" 1>&6
  690. else
  691.   echo 'void f(){}' > conftest.cc
  692. if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
  693.   ac_cv_prog_cxx_g=yes
  694. else
  695.   ac_cv_prog_cxx_g=no
  696. fi
  697. rm -f conftest*
  698.  
  699. fi
  700.  
  701. echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
  702. if test "$ac_test_CXXFLAGS" = set; then
  703.   CXXFLAGS="$ac_save_CXXFLAGS"
  704. elif test $ac_cv_prog_cxx_g = yes; then
  705.   if test "$GXX" = yes; then
  706.     CXXFLAGS="-g -O2"
  707.   else
  708.     CXXFLAGS="-g"
  709.   fi
  710. else
  711.   if test "$GXX" = yes; then
  712.     CXXFLAGS="-O2"
  713.   else
  714.     CXXFLAGS=
  715.   fi
  716. fi
  717.  
  718. echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
  719. echo "configure:720: checking for Cygwin environment" >&5
  720. if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
  721.   echo $ac_n "(cached) $ac_c" 1>&6
  722. else
  723.   cat > conftest.$ac_ext <<EOF
  724. #line 725 "configure"
  725. #include "confdefs.h"
  726.  
  727. int main() {
  728.  
  729. #ifndef __CYGWIN__
  730. #define __CYGWIN__ __CYGWIN32__
  731. #endif
  732. return __CYGWIN__;
  733. ; return 0; }
  734. EOF
  735. if { (eval echo configure:736: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  736.   rm -rf conftest*
  737.   ac_cv_cygwin=yes
  738. else
  739.   echo "configure: failed program was:" >&5
  740.   cat conftest.$ac_ext >&5
  741.   rm -rf conftest*
  742.   ac_cv_cygwin=no
  743. fi
  744. rm -f conftest*
  745. rm -f conftest*
  746. fi
  747.  
  748. echo "$ac_t""$ac_cv_cygwin" 1>&6
  749. CYGWIN=
  750. test "$ac_cv_cygwin" = yes && CYGWIN=yes
  751. echo $ac_n "checking for object suffix""... $ac_c" 1>&6
  752. echo "configure:753: checking for object suffix" >&5
  753. if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
  754.   echo $ac_n "(cached) $ac_c" 1>&6
  755. else
  756.   rm -f conftest*
  757. echo 'int i = 1;' > conftest.$ac_ext
  758. if { (eval echo configure:759: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  759.   for ac_file in conftest.*; do
  760.     case $ac_file in
  761.     *.c) ;;
  762.     *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
  763.     esac
  764.   done
  765. else
  766.   { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
  767. fi
  768. rm -f conftest*
  769. fi
  770.  
  771. echo "$ac_t""$ac_cv_objext" 1>&6
  772. OBJEXT=$ac_cv_objext
  773. ac_objext=$ac_cv_objext
  774.  
  775. echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
  776. echo "configure:777: checking for mingw32 environment" >&5
  777. if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
  778.   echo $ac_n "(cached) $ac_c" 1>&6
  779. else
  780.   cat > conftest.$ac_ext <<EOF
  781. #line 782 "configure"
  782. #include "confdefs.h"
  783.  
  784. int main() {
  785. return __MINGW32__;
  786. ; return 0; }
  787. EOF
  788. if { (eval echo configure:789: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  789.   rm -rf conftest*
  790.   ac_cv_mingw32=yes
  791. else
  792.   echo "configure: failed program was:" >&5
  793.   cat conftest.$ac_ext >&5
  794.   rm -rf conftest*
  795.   ac_cv_mingw32=no
  796. fi
  797. rm -f conftest*
  798. rm -f conftest*
  799. fi
  800.  
  801. echo "$ac_t""$ac_cv_mingw32" 1>&6
  802. MINGW32=
  803. test "$ac_cv_mingw32" = yes && MINGW32=yes
  804.  
  805.  
  806. echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
  807. echo "configure:808: checking for executable suffix" >&5
  808. if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
  809.   echo $ac_n "(cached) $ac_c" 1>&6
  810. else
  811.   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
  812.   ac_cv_exeext=.exe
  813. else
  814.   rm -f conftest*
  815.   echo 'int main () { return 0; }' > conftest.$ac_ext
  816.   ac_cv_exeext=
  817.   if { (eval echo configure:818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  818.     for file in conftest.*; do
  819.       case $file in
  820.       *.c | *.o | *.obj | *.xSYM) ;;
  821.       *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
  822.       esac
  823.     done
  824.   else
  825.     { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
  826.   fi
  827.   rm -f conftest*
  828.   test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
  829. fi
  830. fi
  831.  
  832. EXEEXT=""
  833. test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
  834. echo "$ac_t""${ac_cv_exeext}" 1>&6
  835. ac_exeext=$EXEEXT
  836.  
  837.  
  838. # FIXME : bug in autoconf 2.13 in the AC_EXEEXT macro. If the lang
  839. # is set to C++ the extension will be .C, which confuses the macro
  840. # and makes it think the executable extension is ".C". We currently
  841. # work around this by just setting EXEEXT to .exe on windows.
  842. EXEEXT=""
  843.  
  844. #--------------------------------------------------------------------
  845. #    see if --with-jikespg location is given on the command line
  846. #--------------------------------------------------------------------
  847.  
  848. # Check whether --with-jikespg or --without-jikespg was given.
  849. if test "${with_jikespg+set}" = set; then
  850.   withval="$with_jikespg"
  851.   JIKESPG=$withval
  852. else
  853.   JIKESPG=NONE
  854. fi
  855.  
  856.  
  857. if test "$JIKESPG" != "NONE"; then
  858.     if test ! -f "$JIKESPG" || test ! -x "$JIKESPG"; then
  859.         { echo "configure: error: jikespg argument '$JIKESPG' is not a file or is not executable" 1>&2; exit 1; }
  860.     fi
  861. else
  862.     JIKESPG=jikespg
  863. fi
  864.  
  865. #--------------------------------------------------------------------
  866. #    see if --with-icc is given on the command line
  867. #--------------------------------------------------------------------
  868.  
  869. # Check whether --with-icc or --without-icc was given.
  870. if test "${with_icc+set}" = set; then
  871.   withval="$with_icc"
  872.   DESIRED_CXX=$withval
  873. else
  874.   DESIRED_CXX=NONE
  875. fi
  876.  
  877.  
  878. if test "$DESIRED_CXX" != "NONE"; then
  879.     if test "$DESIRED_CXX" = yes; then
  880.         # Extract the first word of "icc", so it can be a program name with args.
  881. set dummy icc; ac_word=$2
  882. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  883. echo "configure:884: checking for $ac_word" >&5
  884. if eval "test \"`echo '$''{'ac_cv_path_CXX'+set}'`\" = set"; then
  885.   echo $ac_n "(cached) $ac_c" 1>&6
  886. else
  887.   case "$CXX" in
  888.   /*)
  889.   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
  890.   ;;
  891.   ?:/*)             
  892.   ac_cv_path_CXX="$CXX" # Let the user override the test with a dos path.
  893.   ;;
  894.   *)
  895.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  896.   ac_dummy="$PATH"
  897.   for ac_dir in $ac_dummy; do 
  898.     test -z "$ac_dir" && ac_dir=.
  899.     if test -f $ac_dir/$ac_word; then
  900.       ac_cv_path_CXX="$ac_dir/$ac_word"
  901.       break
  902.     fi
  903.   done
  904.   IFS="$ac_save_ifs"
  905.   ;;
  906. esac
  907. fi
  908. CXX="$ac_cv_path_CXX"
  909. if test -n "$CXX"; then
  910.   echo "$ac_t""$CXX" 1>&6
  911. else
  912.   echo "$ac_t""no" 1>&6
  913. fi
  914.  
  915.  
  916.         if test "$CXX" = ""; then
  917.             # Extract the first word of "xlC", so it can be a program name with args.
  918. set dummy xlC; ac_word=$2
  919. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  920. echo "configure:921: checking for $ac_word" >&5
  921. if eval "test \"`echo '$''{'ac_cv_path_CXX'+set}'`\" = set"; then
  922.   echo $ac_n "(cached) $ac_c" 1>&6
  923. else
  924.   case "$CXX" in
  925.   /*)
  926.   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
  927.   ;;
  928.   ?:/*)             
  929.   ac_cv_path_CXX="$CXX" # Let the user override the test with a dos path.
  930.   ;;
  931.   *)
  932.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  933.   ac_dummy="$PATH"
  934.   for ac_dir in $ac_dummy; do 
  935.     test -z "$ac_dir" && ac_dir=.
  936.     if test -f $ac_dir/$ac_word; then
  937.       ac_cv_path_CXX="$ac_dir/$ac_word"
  938.       break
  939.     fi
  940.   done
  941.   IFS="$ac_save_ifs"
  942.   ;;
  943. esac
  944. fi
  945. CXX="$ac_cv_path_CXX"
  946. if test -n "$CXX"; then
  947.   echo "$ac_t""$CXX" 1>&6
  948. else
  949.   echo "$ac_t""no" 1>&6
  950. fi
  951.  
  952.  
  953.             if test "$CXX" = ""; then
  954.                 { echo "configure: error: could not find icc or xlC on your PATH." 1>&2; exit 1; }
  955.             fi
  956.         fi
  957.     fi
  958.  
  959.     if test ! -f "$CXX" || test ! -x "$CXX"; then
  960.         { echo "configure: error: argument '$CXX' is not a file or is not executable" 1>&2; exit 1; }
  961.     fi
  962.  
  963.     CXX_NAME=icc
  964.     CXXREQUIREDFLAGS="-c -DICC"
  965.     CXXOPTFLAGS="-O2"
  966.     CXXDEBUGFLAGS="-DTEST"
  967.     LD=$CXX
  968.     LDDEBUGFLAGS="-g"
  969.     LDFLAGS='-L. -o $(EXECUTABLE)'
  970. fi
  971.  
  972. #--------------------------------------------------------------------
  973. #    see if --with-CC is given on the command line
  974. #--------------------------------------------------------------------
  975.  
  976. # Check whether --with-CC or --without-CC was given.
  977. if test "${with_CC+set}" = set; then
  978.   withval="$with_CC"
  979.   DESIRED_CXX=$withval
  980. else
  981.   DESIRED_CXX=NONE
  982. fi
  983.  
  984.  
  985. if test "$DESIRED_CXX" != "NONE"; then
  986.     if test "$DESIRED_CXX" = yes; then
  987.         # Extract the first word of "CC", so it can be a program name with args.
  988. set dummy CC; ac_word=$2
  989. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  990. echo "configure:991: checking for $ac_word" >&5
  991. if eval "test \"`echo '$''{'ac_cv_path_CXX'+set}'`\" = set"; then
  992.   echo $ac_n "(cached) $ac_c" 1>&6
  993. else
  994.   case "$CXX" in
  995.   /*)
  996.   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
  997.   ;;
  998.   ?:/*)             
  999.   ac_cv_path_CXX="$CXX" # Let the user override the test with a dos path.
  1000.   ;;
  1001.   *)
  1002.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  1003.   ac_dummy="$PATH"
  1004.   for ac_dir in $ac_dummy; do 
  1005.     test -z "$ac_dir" && ac_dir=.
  1006.     if test -f $ac_dir/$ac_word; then
  1007.       ac_cv_path_CXX="$ac_dir/$ac_word"
  1008.       break
  1009.     fi
  1010.   done
  1011.   IFS="$ac_save_ifs"
  1012.   ;;
  1013. esac
  1014. fi
  1015. CXX="$ac_cv_path_CXX"
  1016. if test -n "$CXX"; then
  1017.   echo "$ac_t""$CXX" 1>&6
  1018. else
  1019.   echo "$ac_t""no" 1>&6
  1020. fi
  1021.  
  1022.         if test "$CXX" = ""; then
  1023.             { echo "configure: error: could not find CC on your PATH." 1>&2; exit 1; }
  1024.         fi
  1025.     fi
  1026.  
  1027.     if test ! -f "$CXX" || test ! -x "$CXX"; then
  1028.         { echo "configure: error: argument '$CXX' is not a file or is not executable" 1>&2; exit 1; }
  1029.     fi
  1030.  
  1031.     CXX_NAME=CC
  1032.  
  1033.     CXXREQUIREDFLAGS="-c -ansi"
  1034.     CXXOPTFLAGS="-fast"
  1035.     CXXDEBUGFLAGS="-DTEST -g -xs"
  1036.     LD=$CXX
  1037.     LDDEBUGFLAGS="-g"
  1038.     LDFLAGS='-L. -o $(EXECUTABLE)'
  1039. fi
  1040.  
  1041. #--------------------------------------------------------------------
  1042. #    see if --with-mingwin is given on the command line
  1043. #--------------------------------------------------------------------
  1044.  
  1045. # Check whether --with-mingwin or --without-mingwin was given.
  1046. if test "${with_mingwin+set}" = set; then
  1047.   withval="$with_mingwin"
  1048.   WITH_MINGWIN=$withval
  1049. else
  1050.   WITH_MINGWIN=0
  1051. fi
  1052.  
  1053.  
  1054. #--------------------------------------------------------------------
  1055. # If no other compiler was given as a --with option then we use default
  1056. #--------------------------------------------------------------------
  1057.  
  1058. if test "$CXX_NAME" = ""; then
  1059.     CXX_NAME="$CXX"
  1060.  
  1061.     CXXREQUIREDFLAGS="-c"
  1062.     if test "$WITH_MINGWIN" = "0"; then
  1063.         CXXREQUIREDFLAGS="$CXXREQUIREDFLAGS -ansi"
  1064.     fi
  1065.     CXXOPTFLAGS="-O2"
  1066.     CXXDEBUGFLAGS="-DTEST -g"
  1067.     LD="$CXX"
  1068.     LDDEBUGFLAGS="-g"
  1069.     LDFLAGS='-L. -o $(EXECUTABLE)'
  1070.  
  1071.     if test "$GXX" != "yes"; then
  1072.        LIBS="$LIBS -lm"
  1073.     fi
  1074. fi
  1075.  
  1076. #--------------------------------------------------------------------
  1077. # Do some extra work to find the mingwin include files in case
  1078. # that mingwin can not find them on its own.
  1079. #--------------------------------------------------------------------
  1080.  
  1081. if test "$WITH_MINGWIN" != "0"; then
  1082.     # Extract the first word of "c++", so it can be a program name with args.
  1083. set dummy c++; ac_word=$2
  1084. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1085. echo "configure:1086: checking for $ac_word" >&5
  1086. if eval "test \"`echo '$''{'ac_cv_path_TMP_PROG'+set}'`\" = set"; then
  1087.   echo $ac_n "(cached) $ac_c" 1>&6
  1088. else
  1089.   case "$TMP_PROG" in
  1090.   /*)
  1091.   ac_cv_path_TMP_PROG="$TMP_PROG" # Let the user override the test with a path.
  1092.   ;;
  1093.   ?:/*)             
  1094.   ac_cv_path_TMP_PROG="$TMP_PROG" # Let the user override the test with a dos path.
  1095.   ;;
  1096.   *)
  1097.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  1098.   ac_dummy="$PATH"
  1099.   for ac_dir in $ac_dummy; do 
  1100.     test -z "$ac_dir" && ac_dir=.
  1101.     if test -f $ac_dir/$ac_word; then
  1102.       ac_cv_path_TMP_PROG="$ac_dir/$ac_word"
  1103.       break
  1104.     fi
  1105.   done
  1106.   IFS="$ac_save_ifs"
  1107.   ;;
  1108. esac
  1109. fi
  1110. TMP_PROG="$ac_cv_path_TMP_PROG"
  1111. if test -n "$TMP_PROG"; then
  1112.   echo "$ac_t""$TMP_PROG" 1>&6
  1113. else
  1114.   echo "$ac_t""no" 1>&6
  1115. fi
  1116.  
  1117.     if test "$TMP_PROG" = ""; then
  1118.         { echo "configure: error: Could not find c++ on the PATH" 1>&2; exit 1; }
  1119.     fi
  1120.  
  1121.     CYGROOT=`dirname $TMP_PROG`
  1122.     CYGROOT=`dirname $CYGROOT`
  1123.     if test "${CYGROOT}" = "/"; then
  1124.         CYGROOT=
  1125.     fi
  1126.  
  1127.     MING_INCLUDE=`ls ${CYGROOT}/*/include/*/direct.h`
  1128.  
  1129.     if test "$MING_INCLUDE" != ""; then
  1130.         MING_INCLUDE=`dirname $MING_INCLUDE`
  1131.         CXXREQUIREDFLAGS="$CXXREQUIREDFLAGS -I$MING_INCLUDE"
  1132.         CXXFLAGS="$CXXFLAGS -I$MING_INCLUDE"
  1133.     fi
  1134. fi
  1135.  
  1136.  
  1137. # echo the compiler we are using
  1138.  
  1139. echo $ac_n "checking for the compiler to use""... $ac_c" 1>&6
  1140. echo "configure:1141: checking for the compiler to use" >&5
  1141. echo "$ac_t""$CXX." 1>&6
  1142.  
  1143.  
  1144. # Figure out what platform we are running on so that we know
  1145. # what flags to give to the compiler
  1146.  
  1147.  
  1148. # Keep case statements in alphabetical order.
  1149. case "`uname -s`" in
  1150.     AIX)
  1151.         if test $CXX_NAME = "icc"; then
  1152.             CXXREQUIREDFLAGS="$CXXREQUIREDFLAGS -langlvl=ansi -qnotempinc -+ -qinlglue"
  1153.             CXXDEBUGFLAGS="$CXXDEBUGFLAGS -g"
  1154.         fi
  1155.  
  1156.         CXXREQUIREDFLAGS="$CXXREQUIREDFLAGS -DUNIX"
  1157.         LDFLAGS="$LDFLAGS $LDDEBUGFLAGS"
  1158.         ;;
  1159.     FreeBSD)
  1160.     CXXREQUIREDFLAGS="$CXXREQUIREDFLAGS -DUNIX -DIEEE_DIV_0 -DGNU_LIBC5"
  1161.  
  1162.         if test $GXX = "yes"; then
  1163.             CXXREQUIREDFLAGS="-funsigned-char $CXXREQUIREDFLAGS"
  1164.         fi
  1165.  
  1166.     # Check byte-order
  1167.         case "`uname -m`" in
  1168.             alpha)
  1169.                 ;;
  1170.             i?86)
  1171.                 ;;
  1172.             *)
  1173.                 { echo "configure: error: FreeBSD arch '`uname -m`' not supported." 1>&2; exit 1; }
  1174.                 ;;
  1175.         esac
  1176.     ;;
  1177.     HP-UX)
  1178.         if test $GXX = "yes"; then
  1179.             CXXREQUIREDFLAGS="-funsigned-char $CXXREQUIREDFLAGS"
  1180.         fi
  1181.         CXXREQUIREDFLAGS="$CXXREQUIREDFLAGS -DUNIX -D_INCLUDE_POSIX_SOURCE"
  1182.         CXXREQUIREDFLAGS="$CXXREQUIREDFLAGS -DSTAT_POSIX_1"
  1183.         LDFLAGS="$LDDEBUGFLAGS $LDFLAGS -lstdc++"
  1184.         ;;
  1185.     IRIX)
  1186.         CXXREQUIREDFLAGS="$CXXREQUIREDFLAGS -DUNIX "
  1187.         if test $GAS != "yes"; then
  1188.             CXXREQUIREDFLAGS="$CXXREQUIREDFLAGS -mmips-as"
  1189.         fi
  1190.         ;;
  1191.     GNU)
  1192.         # Basically the same as for Linux but we are sure to use GNU libc6
  1193.         # and the HURD only runs on i386
  1194.         CXXREQUIREDFLAGS="$CXXREQUIREDFLAGS -DUNIX"
  1195.  
  1196.         if test $GXX = "yes"; then
  1197.           CXXREQUIREDFLAGS="-funsigned-char $CXXREQUIREDFLAGS"
  1198.         fi
  1199.  
  1200.         CXXREQUIREDFLAGS="$CXXREQUIREDFLAGS -DSTAT_POSIX"
  1201.         ;;
  1202.     Linux)
  1203.     CXXREQUIREDFLAGS="$CXXREQUIREDFLAGS -DUNIX"
  1204.  
  1205.         if test $GXX = "yes"; then
  1206.             CXXREQUIREDFLAGS="-funsigned-char $CXXREQUIREDFLAGS"
  1207.         fi
  1208.  
  1209.         # test to see if we are using libc5 or gnulib5 (libc6)
  1210.         if test -f /lib/libc.so.5 && test ! -f /lib/libc.so.6; then
  1211.             CXXREQUIREDFLAGS="$CXXREQUIREDFLAGS -DGNU_LIBC5"
  1212.         else
  1213.             CXXREQUIREDFLAGS="$CXXREQUIREDFLAGS -DSTAT_POSIX"
  1214.         fi
  1215.         ;;
  1216.     OS2)
  1217.         if test $CXX_NAME = icc; then
  1218.            O=obj
  1219.            CXXREQUIREDFLAGS="-Tdp -G5 $CXXREQUIREDFLAGS -DUNIX_FILE_SYSTEM -Dcerr=cout"
  1220.            CXXOPTFLAGS="$CXXOPTFLAGS -Tdp -O -DNDEBUG"
  1221.            CXXDEBUGFLAGS="$CXXDEBUGFLAGS -Ti"
  1222.            LDDEBUGFLAGS="/Ti+"
  1223.            LDFLAGS="$LDFLAGS /O:\$(EXECUTABLE) /PM:VIO /STACK:400000 /NOE"
  1224.  
  1225.            # link to an obj file in the icc directory
  1226.            TMP=$CXX
  1227.            TMP=`dirname $TMP`
  1228.            TMP=`dirname $TMP`
  1229.            SYSOBJECTS="$TMP\\lib\\setargv.obj"
  1230.         fi    
  1231.         ;;
  1232.     OSF1)
  1233.         CXXREQUIREDFLAGS="$CXXREQUIREDFLAGS -DUNIX"
  1234.         ;;
  1235.     SunOS)
  1236.         CXXREQUIREDFLAGS="$CXXREQUIREDFLAGS -DUNIX"
  1237.  
  1238.         if test $CXX_NAME = "icc"; then
  1239.                 CXXREQUIREDFLAGS="-langlvl=ansi -+ -qnotempinc $CXXREQUIREDFLAGS"
  1240.                 CXXOPTFLAGS="$CXXOPTFLAGS -O3 -qstrict"
  1241.                 CXXDEBUGFLAGS="$CXXDEBUGFLAGS -g"
  1242.                 LDFLAGS="$LDFLAGS -Bstatic"
  1243.        else
  1244.                 if test $GXX = "yes"; then
  1245.                         CXXREQUIREDFLAGS="-funsigned-char $CXXREQUIREDFLAGS"
  1246.                 fi
  1247.        fi
  1248.     ;;
  1249.     *CYGWIN*)
  1250.         if test $WITH_MINGWIN = "0"; then
  1251.             CXXREQUIREDFLAGS="$CXXREQUIREDFLAGS -DUNIX -DCYGWIN"
  1252.         else
  1253.             # FIXME: buggy mingwin will not link to msvcrtd.dll
  1254.             LIBS="$LIBS -lmsvcrt"
  1255.             #if test "$DEBUG_SYMBOLS" = "yes"; then
  1256.             #    LIBS="$LIBS -lmsvcrtd"
  1257.             #else
  1258.             #    LIBS="$LIBS -lmsvcrt"
  1259.             #fi
  1260.             CXXREQUIREDFLAGS="$CXXREQUIREDFLAGS -mno-cygwin -DMINGWIN -DWIN32_FILE_SYSTEM"
  1261.             LDFLAGS="$LDFLAGS -mno-cygwin"
  1262.  
  1263.             # We also need to set CXXFLAGS so that tests below use these flags
  1264.             CXXFLAGS="$CXXFLAGS -mno-cygwin"
  1265.         fi
  1266.  
  1267.         if test $GXX = "yes"; then
  1268.             CXXREQUIREDFLAGS="-funsigned-char $CXXREQUIREDFLAGS"
  1269.         fi
  1270.  
  1271.         # FIXME : workaround for bug in AC_EXEEXT macro
  1272.         EXEEXT=.exe
  1273.  
  1274.         ;;
  1275.     AmigaOS)
  1276.     CXXREQUIREDFLAGS="$CXXREQUIREDFLAGS -DBIGENDIAN -Dstat=mystat -Dfopen=myfopen -Dopendir=myopendir -Dmkdir=mymkdir"
  1277.     SYSOBJECTS="GG:lib/libnix/swapstack.o -noixemul"
  1278.     case "$CC_NAME" in
  1279.         ?++)
  1280.         CXXREQUIREDFLAGS="-funsigned-char $CXXREQUIREDFLAGS"
  1281.         ;;
  1282.     esac
  1283.     ;;
  1284.     *)
  1285.         { echo "configure: error: platform '`uname -s`' is not supported." 1>&2; exit 1; }
  1286.         ;;
  1287. esac
  1288.  
  1289.  
  1290. #--------------------------------------------------------------------
  1291. #   Check for endianness
  1292. #--------------------------------------------------------------------
  1293. echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
  1294. echo "configure:1295: checking whether byte ordering is bigendian" >&5
  1295. if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
  1296.   echo $ac_n "(cached) $ac_c" 1>&6
  1297. else
  1298.   ac_cv_c_bigendian=unknown
  1299. # See if sys/param.h defines the BYTE_ORDER macro.
  1300. cat > conftest.$ac_ext <<EOF
  1301. #line 1302 "configure"
  1302. #include "confdefs.h"
  1303. #include <sys/types.h>
  1304. #include <sys/param.h>
  1305. int main() {
  1306.  
  1307. #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
  1308.  bogus endian macros
  1309. #endif
  1310. ; return 0; }
  1311. EOF
  1312. if { (eval echo configure:1313: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1313.   rm -rf conftest*
  1314.   # It does; now see whether it defined to BIG_ENDIAN or not.
  1315. cat > conftest.$ac_ext <<EOF
  1316. #line 1317 "configure"
  1317. #include "confdefs.h"
  1318. #include <sys/types.h>
  1319. #include <sys/param.h>
  1320. int main() {
  1321.  
  1322. #if BYTE_ORDER != BIG_ENDIAN
  1323.  not big endian
  1324. #endif
  1325. ; return 0; }
  1326. EOF
  1327. if { (eval echo configure:1328: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1328.   rm -rf conftest*
  1329.   ac_cv_c_bigendian=yes
  1330. else
  1331.   echo "configure: failed program was:" >&5
  1332.   cat conftest.$ac_ext >&5
  1333.   rm -rf conftest*
  1334.   ac_cv_c_bigendian=no
  1335. fi
  1336. rm -f conftest*
  1337. else
  1338.   echo "configure: failed program was:" >&5
  1339.   cat conftest.$ac_ext >&5
  1340. fi
  1341. rm -f conftest*
  1342. if test $ac_cv_c_bigendian = unknown; then
  1343. if test "$cross_compiling" = yes; then
  1344.     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  1345. else
  1346.   cat > conftest.$ac_ext <<EOF
  1347. #line 1348 "configure"
  1348. #include "confdefs.h"
  1349. #ifdef __cplusplus
  1350. extern "C" void exit(int);
  1351. #endif
  1352. main () {
  1353.   /* Are we little or big endian?  From Harbison&Steele.  */
  1354.   union
  1355.   {
  1356.     long l;
  1357.     char c[sizeof (long)];
  1358.   } u;
  1359.   u.l = 1;
  1360.   exit (u.c[sizeof (long) - 1] == 1);
  1361. }
  1362. EOF
  1363. if { (eval echo configure:1364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  1364. then
  1365.   ac_cv_c_bigendian=no
  1366. else
  1367.   echo "configure: failed program was:" >&5
  1368.   cat conftest.$ac_ext >&5
  1369.   rm -fr conftest*
  1370.   ac_cv_c_bigendian=yes
  1371. fi
  1372. rm -fr conftest*
  1373. fi
  1374.  
  1375. fi
  1376. fi
  1377.  
  1378. echo "$ac_t""$ac_cv_c_bigendian" 1>&6
  1379. if test $ac_cv_c_bigendian = yes; then
  1380.   cat >> confdefs.h <<\EOF
  1381. #define WORDS_BIGENDIAN 1
  1382. EOF
  1383.  
  1384. fi
  1385.  
  1386.  
  1387. #--------------------------------------------------------------------
  1388. #   see if "bool" is a builtin type
  1389. #--------------------------------------------------------------------
  1390.  
  1391. echo $ac_n "checking builtin bool type""... $ac_c" 1>&6
  1392. echo "configure:1393: checking builtin bool type" >&5
  1393. if eval "test \"`echo '$''{'jikes_cv_has_bool'+set}'`\" = set"; then
  1394.   echo $ac_n "(cached) $ac_c" 1>&6
  1395. else
  1396.   cat > conftest.$ac_ext <<EOF
  1397. #line 1398 "configure"
  1398. #include "confdefs.h"
  1399.  
  1400. int main() {
  1401. bool some_boolean_value = true;
  1402. ; return 0; }
  1403. EOF
  1404. if { (eval echo configure:1405: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1405.   rm -rf conftest*
  1406.   jikes_cv_has_bool=yes
  1407. else
  1408.   echo "configure: failed program was:" >&5
  1409.   cat conftest.$ac_ext >&5
  1410.   rm -rf conftest*
  1411.   jikes_cv_has_bool=no
  1412. fi
  1413. rm -f conftest*
  1414. fi
  1415.  
  1416. echo "$ac_t""$jikes_cv_has_bool" 1>&6
  1417. if test "x$jikes_cv_has_bool" = "xyes"; then
  1418.     CXXREQUIREDFLAGS="$CXXREQUIREDFLAGS -DHAVE_BOOL"
  1419. fi
  1420.  
  1421. #--------------------------------------------------------------------------
  1422. #   Check for broken USHRT_MAX (under Mingwin and maybe some other systems
  1423. #--------------------------------------------------------------------------
  1424.  
  1425. echo $ac_n "checking for broken ushrt_max""... $ac_c" 1>&6
  1426. echo "configure:1427: checking for broken ushrt_max" >&5
  1427. if eval "test \"`echo '$''{'jikes_cv_ushrt_max_is_broken'+set}'`\" = set"; then
  1428.   echo $ac_n "(cached) $ac_c" 1>&6
  1429. else
  1430.   cat > conftest.$ac_ext <<EOF
  1431. #line 1432 "configure"
  1432. #include "confdefs.h"
  1433.  
  1434. #include <limits.h>
  1435. #if ! (USHRT_MAX == 0xFFFF)
  1436. int hi=0;
  1437. #endif
  1438.  
  1439. int main() {
  1440. return 0;
  1441. ; return 0; }
  1442. EOF
  1443. if { (eval echo configure:1444: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1444.   rm -rf conftest*
  1445.   jikes_cv_ushrt_max_is_broken=no
  1446. else
  1447.   echo "configure: failed program was:" >&5
  1448.   cat conftest.$ac_ext >&5
  1449.   rm -rf conftest*
  1450.   jikes_cv_ushrt_max_is_broken=yes
  1451. fi
  1452. rm -f conftest*
  1453. fi
  1454.  
  1455. echo "$ac_t""$jikes_cv_ushrt_max_is_broken" 1>&6
  1456. if test "$jikes_cv_ushrt_max_is_broken" = "yes"; then
  1457.     CXXREQUIREDFLAGS="$CXXREQUIREDFLAGS -DBROKEN_USHRT_MAX"
  1458. fi
  1459.  
  1460. #----------------------------------------------------------------------------------
  1461. #   Check for some headers which are not present on all supported platforms
  1462. #----------------------------------------------------------------------------------
  1463. echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
  1464. echo "configure:1465: checking how to run the C++ preprocessor" >&5
  1465. if test -z "$CXXCPP"; then
  1466. if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
  1467.   echo $ac_n "(cached) $ac_c" 1>&6
  1468. else
  1469.   ac_ext=C
  1470. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  1471. ac_cpp='$CXXCPP $CPPFLAGS'
  1472. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  1473. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  1474. cross_compiling=$ac_cv_prog_cxx_cross
  1475.   CXXCPP="${CXX-g++} -E"
  1476.   cat > conftest.$ac_ext <<EOF
  1477. #line 1478 "configure"
  1478. #include "confdefs.h"
  1479. #include <stdlib.h>
  1480. EOF
  1481. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1482. { (eval echo configure:1483: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1483. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1484. if test -z "$ac_err"; then
  1485.   :
  1486. else
  1487.   echo "$ac_err" >&5
  1488.   echo "configure: failed program was:" >&5
  1489.   cat conftest.$ac_ext >&5
  1490.   rm -rf conftest*
  1491.   CXXCPP=/lib/cpp
  1492. fi
  1493. rm -f conftest*
  1494.   ac_cv_prog_CXXCPP="$CXXCPP"
  1495. ac_ext=C
  1496. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  1497. ac_cpp='$CXXCPP $CPPFLAGS'
  1498. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  1499. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  1500. cross_compiling=$ac_cv_prog_cxx_cross
  1501. fi
  1502. fi
  1503. CXXCPP="$ac_cv_prog_CXXCPP"
  1504. echo "$ac_t""$CXXCPP" 1>&6
  1505.  
  1506. for ac_hdr in wchar.h
  1507. do
  1508. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  1509. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1510. echo "configure:1511: checking for $ac_hdr" >&5
  1511. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1512.   echo $ac_n "(cached) $ac_c" 1>&6
  1513. else
  1514.   cat > conftest.$ac_ext <<EOF
  1515. #line 1516 "configure"
  1516. #include "confdefs.h"
  1517. #include <$ac_hdr>
  1518. EOF
  1519. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1520. { (eval echo configure:1521: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1521. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1522. if test -z "$ac_err"; then
  1523.   rm -rf conftest*
  1524.   eval "ac_cv_header_$ac_safe=yes"
  1525. else
  1526.   echo "$ac_err" >&5
  1527.   echo "configure: failed program was:" >&5
  1528.   cat conftest.$ac_ext >&5
  1529.   rm -rf conftest*
  1530.   eval "ac_cv_header_$ac_safe=no"
  1531. fi
  1532. rm -f conftest*
  1533. fi
  1534. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1535.   echo "$ac_t""yes" 1>&6
  1536.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  1537.   cat >> confdefs.h <<EOF
  1538. #define $ac_tr_hdr 1
  1539. EOF
  1540.  
  1541. else
  1542.   echo "$ac_t""no" 1>&6
  1543. fi
  1544. done
  1545.  
  1546.  
  1547. #--------------------------------------------------------------------
  1548. #   Check for wint_t in wchar.h (broken on linux libc5, cygwin, maybe others?)
  1549. #--------------------------------------------------------------------
  1550. echo $ac_n "checking for wint_t in wchar.h""... $ac_c" 1>&6
  1551. echo "configure:1552: checking for wint_t in wchar.h" >&5
  1552. if eval "test \"`echo '$''{'jikes_cv_has_wint_t'+set}'`\" = set"; then
  1553.   echo $ac_n "(cached) $ac_c" 1>&6
  1554. else
  1555.   cat > conftest.$ac_ext <<EOF
  1556. #line 1557 "configure"
  1557. #include "confdefs.h"
  1558.  
  1559. #ifdef HAVE_WCHAR_H
  1560. # include <wchar.h>
  1561. #endif
  1562.  
  1563. int main() {
  1564. wint_t foo;
  1565. ; return 0; }
  1566. EOF
  1567. if { (eval echo configure:1568: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1568.   rm -rf conftest*
  1569.   CXXREQUIREDFLAGS="$CXXREQUIREDFLAGS -DHAVE_WINT_T" 
  1570.         jikes_cv_has_wint_t=yes
  1571. else
  1572.   echo "configure: failed program was:" >&5
  1573.   cat conftest.$ac_ext >&5
  1574.   rm -rf conftest*
  1575.   jikes_cv_has_wint_t=no
  1576. fi
  1577. rm -f conftest*
  1578. fi
  1579.  
  1580. echo "$ac_t""$jikes_cv_has_wint_t" 1>&6
  1581.  
  1582. if test $jikes_cv_has_wint_t = "no"; then
  1583.     cat > conftest.$ac_ext <<EOF
  1584. #line 1585 "configure"
  1585. #include "confdefs.h"
  1586.  
  1587. #ifdef HAVE_WCHAR_H
  1588. # include <wchar.h>
  1589. #endif
  1590. typedef unsigned int wint_t;
  1591.  
  1592. int main() {
  1593. wint_t foo;
  1594. ; return 0; }
  1595. EOF
  1596. if { (eval echo configure:1597: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1597.   :
  1598. else
  1599.   echo "configure: failed program was:" >&5
  1600.   cat conftest.$ac_ext >&5
  1601.   rm -rf conftest*
  1602.   { echo "configure: error: Can't fix broken wchar.h" 1>&2; exit 1; }
  1603. fi
  1604. rm -f conftest*
  1605. fi
  1606.  
  1607. #--------------------------------------------------------------------
  1608. #   Check for wcs functions in wchar.h or string.h
  1609. #   We want to treat "implicit declaration of function" types of
  1610. #   warnings as errors here because g++ does not do that by itself.
  1611. #--------------------------------------------------------------------
  1612.  
  1613. ac_saved_cxx_flags=$CXXFLAGS
  1614. if test $GXX = "yes"; then
  1615.     CXXFLAGS="$CXXFLAGS -Werror"
  1616. fi
  1617.  
  1618. echo $ac_n "checking for declaration of wcslen""... $ac_c" 1>&6
  1619. echo "configure:1620: checking for declaration of wcslen" >&5
  1620. if eval "test \"`echo '$''{'ac_cv_declared_wcslen'+set}'`\" = set"; then
  1621.   echo $ac_n "(cached) $ac_c" 1>&6
  1622. else
  1623.   cat > conftest.$ac_ext <<EOF
  1624. #line 1625 "configure"
  1625. #include "confdefs.h"
  1626.  
  1627. #ifdef HAVE_WCHAR_H
  1628. # include <wchar.h>
  1629. #endif
  1630. #include <string.h>
  1631.  
  1632. int main() {
  1633.  wcslen(NULL) 
  1634. ; return 0; }
  1635. EOF
  1636. if { (eval echo configure:1637: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1637.   rm -rf conftest*
  1638.   ac_cv_declared_wcslen=yes
  1639. else
  1640.   echo "configure: failed program was:" >&5
  1641.   cat conftest.$ac_ext >&5
  1642.   rm -rf conftest*
  1643.   ac_cv_declared_wcslen=no
  1644. fi
  1645. rm -f conftest*
  1646.  
  1647. fi
  1648.  
  1649. echo "$ac_t""$ac_cv_declared_wcslen" 1>&6
  1650. if test "x$ac_cv_declared_wcslen" = "xyes"; then
  1651.     CXXREQUIREDFLAGS="$CXXREQUIREDFLAGS -DHAVE_WCSLEN"
  1652. fi
  1653.  
  1654. echo $ac_n "checking for declaration of wcscpy""... $ac_c" 1>&6
  1655. echo "configure:1656: checking for declaration of wcscpy" >&5
  1656. if eval "test \"`echo '$''{'ac_cv_declared_wcscpy'+set}'`\" = set"; then
  1657.   echo $ac_n "(cached) $ac_c" 1>&6
  1658. else
  1659.   cat > conftest.$ac_ext <<EOF
  1660. #line 1661 "configure"
  1661. #include "confdefs.h"
  1662.  
  1663. #ifdef HAVE_WCHAR_H
  1664. # include <wchar.h>
  1665. #endif
  1666. #include <string.h>
  1667.  
  1668. int main() {
  1669.  wcscpy(NULL, NULL) 
  1670. ; return 0; }
  1671. EOF
  1672. if { (eval echo configure:1673: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1673.   rm -rf conftest*
  1674.   ac_cv_declared_wcscpy=yes
  1675. else
  1676.   echo "configure: failed program was:" >&5
  1677.   cat conftest.$ac_ext >&5
  1678.   rm -rf conftest*
  1679.   ac_cv_declared_wcscpy=no
  1680. fi
  1681. rm -f conftest*
  1682.  
  1683. fi
  1684.  
  1685. echo "$ac_t""$ac_cv_declared_wcscpy" 1>&6
  1686. if test "x$ac_cv_declared_wcscpy" = "xyes"; then
  1687.     CXXREQUIREDFLAGS="$CXXREQUIREDFLAGS -DHAVE_WCSCPY"
  1688. fi
  1689.  
  1690. echo $ac_n "checking for declaration of wcsncpy""... $ac_c" 1>&6
  1691. echo "configure:1692: checking for declaration of wcsncpy" >&5
  1692. if eval "test \"`echo '$''{'ac_cv_declared_wcsncpy'+set}'`\" = set"; then
  1693.   echo $ac_n "(cached) $ac_c" 1>&6
  1694. else
  1695.   cat > conftest.$ac_ext <<EOF
  1696. #line 1697 "configure"
  1697. #include "confdefs.h"
  1698.  
  1699. #ifdef HAVE_WCHAR_H
  1700. # include <wchar.h>
  1701. #endif
  1702. #include <string.h>
  1703.  
  1704. int main() {
  1705.  wcsncpy(NULL, NULL, 0) 
  1706. ; return 0; }
  1707. EOF
  1708. if { (eval echo configure:1709: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1709.   rm -rf conftest*
  1710.   ac_cv_declared_wcsncpy=yes
  1711. else
  1712.   echo "configure: failed program was:" >&5
  1713.   cat conftest.$ac_ext >&5
  1714.   rm -rf conftest*
  1715.   ac_cv_declared_wcsncpy=no
  1716. fi
  1717. rm -f conftest*
  1718.  
  1719. fi
  1720.  
  1721. echo "$ac_t""$ac_cv_declared_wcsncpy" 1>&6
  1722. if test "x$ac_cv_declared_wcsncpy" = "xyes"; then
  1723.     CXXREQUIREDFLAGS="$CXXREQUIREDFLAGS -DHAVE_WCSNCPY"
  1724. fi
  1725.  
  1726. echo $ac_n "checking for declaration of wcscat""... $ac_c" 1>&6
  1727. echo "configure:1728: checking for declaration of wcscat" >&5
  1728. if eval "test \"`echo '$''{'ac_cv_declared_wcscat'+set}'`\" = set"; then
  1729.   echo $ac_n "(cached) $ac_c" 1>&6
  1730. else
  1731.   cat > conftest.$ac_ext <<EOF
  1732. #line 1733 "configure"
  1733. #include "confdefs.h"
  1734.  
  1735. #ifdef HAVE_WCHAR_H
  1736. # include <wchar.h>
  1737. #endif
  1738. #include <string.h>
  1739.  
  1740. int main() {
  1741.  wcscat(NULL, NULL) 
  1742. ; return 0; }
  1743. EOF
  1744. if { (eval echo configure:1745: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1745.   rm -rf conftest*
  1746.   ac_cv_declared_wcscat=yes
  1747. else
  1748.   echo "configure: failed program was:" >&5
  1749.   cat conftest.$ac_ext >&5
  1750.   rm -rf conftest*
  1751.   ac_cv_declared_wcscat=no
  1752. fi
  1753. rm -f conftest*
  1754.  
  1755. fi
  1756.  
  1757. echo "$ac_t""$ac_cv_declared_wcscat" 1>&6
  1758. if test "x$ac_cv_declared_wcscat" = "xyes"; then
  1759.     CXXREQUIREDFLAGS="$CXXREQUIREDFLAGS -DHAVE_WCSCAT"
  1760. fi
  1761.  
  1762. echo $ac_n "checking for declaration of wcscmp""... $ac_c" 1>&6
  1763. echo "configure:1764: checking for declaration of wcscmp" >&5
  1764. if eval "test \"`echo '$''{'ac_cv_declared_wcscmp'+set}'`\" = set"; then
  1765.   echo $ac_n "(cached) $ac_c" 1>&6
  1766. else
  1767.   cat > conftest.$ac_ext <<EOF
  1768. #line 1769 "configure"
  1769. #include "confdefs.h"
  1770.  
  1771. #ifdef HAVE_WCHAR_H
  1772. # include <wchar.h>
  1773. #endif
  1774. #include <string.h>
  1775.  
  1776. int main() {
  1777.  wcscmp(NULL, NULL) 
  1778. ; return 0; }
  1779. EOF
  1780. if { (eval echo configure:1781: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1781.   rm -rf conftest*
  1782.   ac_cv_declared_wcscmp=yes
  1783. else
  1784.   echo "configure: failed program was:" >&5
  1785.   cat conftest.$ac_ext >&5
  1786.   rm -rf conftest*
  1787.   ac_cv_declared_wcscmp=no
  1788. fi
  1789. rm -f conftest*
  1790.  
  1791. fi
  1792.  
  1793. echo "$ac_t""$ac_cv_declared_wcscmp" 1>&6
  1794. if test "x$ac_cv_declared_wcscmp" = "xyes"; then
  1795.     CXXREQUIREDFLAGS="$CXXREQUIREDFLAGS -DHAVE_WCSCMP"
  1796. fi
  1797.  
  1798. echo $ac_n "checking for declaration of wcsncmp""... $ac_c" 1>&6
  1799. echo "configure:1800: checking for declaration of wcsncmp" >&5
  1800. if eval "test \"`echo '$''{'ac_cv_declared_wcsncmp'+set}'`\" = set"; then
  1801.   echo $ac_n "(cached) $ac_c" 1>&6
  1802. else
  1803.   cat > conftest.$ac_ext <<EOF
  1804. #line 1805 "configure"
  1805. #include "confdefs.h"
  1806.  
  1807. #ifdef HAVE_WCHAR_H
  1808. # include <wchar.h>
  1809. #endif
  1810. #include <string.h>
  1811.  
  1812. int main() {
  1813.  wcsncmp(NULL, NULL, 0) 
  1814. ; return 0; }
  1815. EOF
  1816. if { (eval echo configure:1817: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1817.   rm -rf conftest*
  1818.   ac_cv_declared_wcsncmp=yes
  1819. else
  1820.   echo "configure: failed program was:" >&5
  1821.   cat conftest.$ac_ext >&5
  1822.   rm -rf conftest*
  1823.   ac_cv_declared_wcsncmp=no
  1824. fi
  1825. rm -f conftest*
  1826.  
  1827. fi
  1828.  
  1829. echo "$ac_t""$ac_cv_declared_wcsncmp" 1>&6
  1830. if test "x$ac_cv_declared_wcsncmp" = "xyes"; then
  1831.     CXXREQUIREDFLAGS="$CXXREQUIREDFLAGS -DHAVE_WCSNCMP"
  1832. fi
  1833.  
  1834. CXXFLAGS=$ac_saved_cxx_flags
  1835.  
  1836. #--------------------------------------------------------------------
  1837. #   Check if "IBM Classes for UNICODE library is present
  1838. #--------------------------------------------------------------------
  1839. ac_saved_ld_flags=$LDFLAGS
  1840. LDFLAGS=
  1841. echo $ac_n "checking for ucnv_getDefaultName in -licu-uc""... $ac_c" 1>&6
  1842. echo "configure:1843: checking for ucnv_getDefaultName in -licu-uc" >&5
  1843. ac_lib_var=`echo icu-uc'_'ucnv_getDefaultName | sed 'y%./+-%__p_%'`
  1844. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1845.   echo $ac_n "(cached) $ac_c" 1>&6
  1846. else
  1847.   ac_save_LIBS="$LIBS"
  1848. LIBS="-licu-uc  $LIBS"
  1849. cat > conftest.$ac_ext <<EOF
  1850. #line 1851 "configure"
  1851. #include "confdefs.h"
  1852. /* Override any gcc2 internal prototype to avoid an error.  */
  1853. #ifdef __cplusplus
  1854. extern "C"
  1855. #endif
  1856. /* We use char because int might match the return type of a gcc2
  1857.     builtin and then its argument prototype would still apply.  */
  1858. char ucnv_getDefaultName();
  1859.  
  1860. int main() {
  1861. ucnv_getDefaultName()
  1862. ; return 0; }
  1863. EOF
  1864. if { (eval echo configure:1865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1865.   rm -rf conftest*
  1866.   eval "ac_cv_lib_$ac_lib_var=yes"
  1867. else
  1868.   echo "configure: failed program was:" >&5
  1869.   cat conftest.$ac_ext >&5
  1870.   rm -rf conftest*
  1871.   eval "ac_cv_lib_$ac_lib_var=no"
  1872. fi
  1873. rm -f conftest*
  1874. LIBS="$ac_save_LIBS"
  1875.  
  1876. fi
  1877. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1878.   echo "$ac_t""yes" 1>&6
  1879.   CXXREQUIREDFLAGS="$CXXREQUIREDFLAGS -DHAVE_LIB_ICU_UC"; LIBS="$LIBS -licu-uc"
  1880. else
  1881.   echo "$ac_t""no" 1>&6
  1882. fi
  1883.  
  1884. LDFLAGS=$ac_saved_ld_flags
  1885.  
  1886. #--------------------------------------------------------------------
  1887. #   Check for java runtime and compiler
  1888. #--------------------------------------------------------------------
  1889.  
  1890. # First check for SUN javac
  1891. # Extract the first word of "javac ", so it can be a program name with args.
  1892. set dummy javac ; ac_word=$2
  1893. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1894. echo "configure:1895: checking for $ac_word" >&5
  1895. if eval "test \"`echo '$''{'ac_cv_prog_JAVAC'+set}'`\" = set"; then
  1896.   echo $ac_n "(cached) $ac_c" 1>&6
  1897. else
  1898.   if test -n "$JAVAC"; then
  1899.   ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
  1900. else
  1901.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  1902.   ac_dummy="$PATH"
  1903.   for ac_dir in $ac_dummy; do
  1904.     test -z "$ac_dir" && ac_dir=.
  1905.     if test -f $ac_dir/$ac_word; then
  1906.       ac_cv_prog_JAVAC="javac"
  1907.       break
  1908.     fi
  1909.   done
  1910.   IFS="$ac_save_ifs"
  1911.   test -z "$ac_cv_prog_JAVAC" && ac_cv_prog_JAVAC="NONE"
  1912. fi
  1913. fi
  1914. JAVAC="$ac_cv_prog_JAVAC"
  1915. if test -n "$JAVAC"; then
  1916.   echo "$ac_t""$JAVAC" 1>&6
  1917. else
  1918.   echo "$ac_t""no" 1>&6
  1919. fi
  1920.  
  1921. if test "$JAVAC" != "NONE"; then
  1922.     DO=NOTHING
  1923. else
  1924.     # if SUN javac not found, check for jikes
  1925.     # Extract the first word of "jikes ", so it can be a program name with args.
  1926. set dummy jikes ; ac_word=$2
  1927. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1928. echo "configure:1929: checking for $ac_word" >&5
  1929. if eval "test \"`echo '$''{'ac_cv_prog_JAVAC'+set}'`\" = set"; then
  1930.   echo $ac_n "(cached) $ac_c" 1>&6
  1931. else
  1932.   if test -n "$JAVAC"; then
  1933.   ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
  1934. else
  1935.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  1936.   ac_dummy="$PATH"
  1937.   for ac_dir in $ac_dummy; do
  1938.     test -z "$ac_dir" && ac_dir=.
  1939.     if test -f $ac_dir/$ac_word; then
  1940.       ac_cv_prog_JAVAC="jikes"
  1941.       break
  1942.     fi
  1943.   done
  1944.   IFS="$ac_save_ifs"
  1945.   test -z "$ac_cv_prog_JAVAC" && ac_cv_prog_JAVAC="NONE"
  1946. fi
  1947. fi
  1948. JAVAC="$ac_cv_prog_JAVAC"
  1949. if test -n "$JAVAC"; then
  1950.   echo "$ac_t""$JAVAC" 1>&6
  1951. else
  1952.   echo "$ac_t""no" 1>&6
  1953. fi
  1954.  
  1955.     # no specific flags for jikes
  1956.     if test "$JAVAC" != "NONE"; then
  1957.         DO=NOTHING
  1958.     else
  1959.         echo "configure: warning: Could not find javac or jikes on the path, you may want to
  1960. compile gencode.java and run it on your own." 1>&2
  1961.     fi
  1962. fi
  1963.  
  1964. # Extract the first word of "java ", so it can be a program name with args.
  1965. set dummy java ; ac_word=$2
  1966. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1967. echo "configure:1968: checking for $ac_word" >&5
  1968. if eval "test \"`echo '$''{'ac_cv_prog_JAVA'+set}'`\" = set"; then
  1969.   echo $ac_n "(cached) $ac_c" 1>&6
  1970. else
  1971.   if test -n "$JAVA"; then
  1972.   ac_cv_prog_JAVA="$JAVA" # Let the user override the test.
  1973. else
  1974.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS=":"
  1975.   ac_dummy="$PATH"
  1976.   for ac_dir in $ac_dummy; do
  1977.     test -z "$ac_dir" && ac_dir=.
  1978.     if test -f $ac_dir/$ac_word; then
  1979.       ac_cv_prog_JAVA="java"
  1980.       break
  1981.     fi
  1982.   done
  1983.   IFS="$ac_save_ifs"
  1984.   test -z "$ac_cv_prog_JAVA" && ac_cv_prog_JAVA="NONE"
  1985. fi
  1986. fi
  1987. JAVA="$ac_cv_prog_JAVA"
  1988. if test -n "$JAVA"; then
  1989.   echo "$ac_t""$JAVA" 1>&6
  1990. else
  1991.   echo "$ac_t""no" 1>&6
  1992. fi
  1993.  
  1994. if test "$JAVA" != "NONE"; then
  1995.     # We need to create code.h and code.cpp in srcdir not the
  1996.     # build dir because the Makefile looks for them in srcdir
  1997.     here=`pwd`
  1998.     cd ${srcdir}
  1999.     $JAVAC gencode.java
  2000.     CLASSPATH=. ; export CLASSPATH
  2001.     $JAVA gencode
  2002.     cd ${here}
  2003. fi
  2004.  
  2005.  
  2006. # The OBJEXT and EXEEXT variables are set in the AC_OBJEXT
  2007. # and AC_EXEEXT macros.
  2008.  
  2009. ERASE="rm -f"
  2010. O=${OBJEXT}
  2011. EXECUTABLE=jikes${EXEEXT}
  2012.  
  2013. #--------------------------------------------------------------------
  2014. #    see if --enable-debug was given, if so use debug symbols
  2015. #--------------------------------------------------------------------
  2016.  
  2017. # Check whether --enable-debug or --disable-debug was given.
  2018. if test "${enable_debug+set}" = set; then
  2019.   enableval="$enable_debug"
  2020.   DEBUG_SYMBOLS=$enableval
  2021. else
  2022.   DEBUG_SYMBOLS=no
  2023. fi
  2024.  
  2025.  
  2026. if test "x$DEBUG_SYMBOLS" = "xyes"; then
  2027.     CXXFLAGS='$(CXXREQUIREDFLAGS) $(CXXDEBUGFLAGS)'
  2028. else
  2029.     CXXFLAGS='$(CXXREQUIREDFLAGS) $(CXXOPTFLAGS)'
  2030.     LDFLAGS="-s $LDFLAGS"
  2031. fi
  2032.  
  2033. # Subst variables into Makefile.in to produce the Makefile
  2034.  
  2035. BUILD_DIR=`pwd`
  2036.  
  2037.  
  2038.  
  2039.  
  2040.  
  2041.  
  2042.  
  2043.  
  2044.  
  2045.  
  2046.  
  2047.  
  2048.  
  2049.  
  2050.  
  2051. trap '' 1 2 15
  2052. cat > confcache <<\EOF
  2053. # This file is a shell script that caches the results of configure
  2054. # tests run on this system so they can be shared between configure
  2055. # scripts and configure runs.  It is not useful on other systems.
  2056. # If it contains results you don't want to keep, you may remove or edit it.
  2057. #
  2058. # By default, configure uses ./config.cache as the cache file,
  2059. # creating it if it does not exist already.  You can give configure
  2060. # the --cache-file=FILE option to use a different cache file; that is
  2061. # what configure does when it calls configure scripts in
  2062. # subdirectories, so they share the cache.
  2063. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  2064. # config.status only pays attention to the cache file if you give it the
  2065. # --recheck option to rerun configure.
  2066. #
  2067. EOF
  2068. # The following way of writing the cache mishandles newlines in values,
  2069. # but we know of no workaround that is simple, portable, and efficient.
  2070. # So, don't put newlines in cache variables' values.
  2071. # Ultrix sh set writes to stderr and can't be redirected directly,
  2072. # and sets the high bit in the cache file unless we assign to the vars.
  2073. (set) 2>&1 |
  2074.   case `(ac_space=' '; set | grep ac_space) 2>&1` in
  2075.   *ac_space=\ *)
  2076.     # `set' does not quote correctly, so add quotes (double-quote substitution
  2077.     # turns \\\\ into \\, and sed turns \\ into \).
  2078.     sed -n \
  2079.       -e "s/'/'\\\\''/g" \
  2080.       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  2081.     ;;
  2082.   *)
  2083.     # `set' quotes correctly as required by POSIX, so do not add quotes.
  2084.     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  2085.     ;;
  2086.   esac >> confcache
  2087. if cmp -s $cache_file confcache; then
  2088.   :
  2089. else
  2090.   if test -w $cache_file; then
  2091.     echo "updating cache $cache_file"
  2092.     cat confcache > $cache_file
  2093.   else
  2094.     echo "not updating unwritable cache $cache_file"
  2095.   fi
  2096. fi
  2097. rm -f confcache
  2098.  
  2099. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  2100.  
  2101. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  2102. # Let make expand exec_prefix.
  2103. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  2104.  
  2105. # Any assignment to VPATH causes Sun make to only execute
  2106. # the first set of double-colon rules, so remove it if not needed.
  2107. # If there is a colon in the path, we need to keep it.
  2108. if test "x$srcdir" = x.; then
  2109.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  2110. fi
  2111.  
  2112. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  2113.  
  2114.  
  2115. # Transform confdefs.h into DEFS.
  2116. # Protect against shell expansion while executing Makefile rules.
  2117. # Protect against Makefile macro expansion.
  2118. cat > conftest.defs <<\EOF
  2119. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
  2120. s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
  2121. s%\[%\\&%g
  2122. s%\]%\\&%g
  2123. s%\$%$$%g
  2124. EOF
  2125. DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
  2126. rm -f conftest.defs
  2127.  
  2128.  
  2129. # Without the "./", some shells look in PATH for config.status.
  2130. : ${CONFIG_STATUS=./config.status}
  2131.  
  2132. echo creating $CONFIG_STATUS
  2133. # Some systems, like AmigaOS, won't allow you to remove a script that is
  2134. # being executed, so just move it out of the way instead.
  2135. if test -f $CONFIG_STATUS; then mv $CONFIG_STATUS $CONFIG_STATUS.old; else true; fi
  2136. cat > $CONFIG_STATUS <<EOF
  2137. #! /bin/sh
  2138. # Generated automatically by configure.
  2139. # Run this file to recreate the current configuration.
  2140. # This directory was configured as follows,
  2141. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  2142. #
  2143. # $0 $ac_configure_args
  2144. #
  2145. # Compiler output produced by configure, useful for debugging
  2146. # configure, is in ./config.log if it exists.
  2147.  
  2148. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  2149. for ac_option
  2150. do
  2151.   case "\$ac_option" in
  2152.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  2153.     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  2154.     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  2155.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  2156.     echo "$CONFIG_STATUS generated by autoconf version 2.13"
  2157.     exit 0 ;;
  2158.   -help | --help | --hel | --he | --h)
  2159.     echo "\$ac_cs_usage"; exit 0 ;;
  2160.   *) echo "\$ac_cs_usage"; exit 1 ;;
  2161.   esac
  2162. done
  2163.  
  2164. ac_given_srcdir=$srcdir
  2165.  
  2166. trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  2167. EOF
  2168. cat >> $CONFIG_STATUS <<EOF
  2169.  
  2170. # Protect against being on the right side of a sed subst in config.status.
  2171. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  2172.  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  2173. $ac_vpsub
  2174. $extrasub
  2175. s%@SHELL@%$SHELL%g
  2176. s%@CFLAGS@%$CFLAGS%g
  2177. s%@CPPFLAGS@%$CPPFLAGS%g
  2178. s%@CXXFLAGS@%$CXXFLAGS%g
  2179. s%@FFLAGS@%$FFLAGS%g
  2180. s%@DEFS@%$DEFS%g
  2181. s%@LDFLAGS@%$LDFLAGS%g
  2182. s%@LIBS@%$LIBS%g
  2183. s%@exec_prefix@%$exec_prefix%g
  2184. s%@prefix@%$prefix%g
  2185. s%@program_transform_name@%$program_transform_name%g
  2186. s%@bindir@%$bindir%g
  2187. s%@sbindir@%$sbindir%g
  2188. s%@libexecdir@%$libexecdir%g
  2189. s%@datadir@%$datadir%g
  2190. s%@sysconfdir@%$sysconfdir%g
  2191. s%@sharedstatedir@%$sharedstatedir%g
  2192. s%@localstatedir@%$localstatedir%g
  2193. s%@libdir@%$libdir%g
  2194. s%@includedir@%$includedir%g
  2195. s%@oldincludedir@%$oldincludedir%g
  2196. s%@infodir@%$infodir%g
  2197. s%@guidedir@%$guidedir%g
  2198. s%@htmldir@%$htmldir%g
  2199. s%@psdir@%$psdir%g
  2200. s%@dvidir@%$dvidir%g
  2201. s%@mandir@%$mandir%g
  2202. s%@CXX@%$CXX%g
  2203. s%@OBJEXT@%$OBJEXT%g
  2204. s%@EXEEXT@%$EXEEXT%g
  2205. s%@TMP_PROG@%$TMP_PROG%g
  2206. s%@CXXCPP@%$CXXCPP%g
  2207. s%@JAVAC@%$JAVAC%g
  2208. s%@JAVA@%$JAVA%g
  2209. s%@BUILD_DIR@%$BUILD_DIR%g
  2210. s%@CXXREQUIREDFLAGS@%$CXXREQUIREDFLAGS%g
  2211. s%@CXXDEBUGFLAGS@%$CXXDEBUGFLAGS%g
  2212. s%@CXXOPTFLAGS@%$CXXOPTFLAGS%g
  2213. s%@ERASE@%$ERASE%g
  2214. s%@EXECUTABLE@%$EXECUTABLE%g
  2215. s%@LD@%$LD%g
  2216. s%@O@%$O%g
  2217. s%@SYSOBJECTS@%$SYSOBJECTS%g
  2218.  
  2219. CEOF
  2220. EOF
  2221.  
  2222. cat >> $CONFIG_STATUS <<\EOF
  2223.  
  2224. # Split the substitutions into bite-sized pieces for seds with
  2225. # small command number limits, like on Digital OSF/1 and HP-UX.
  2226. ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  2227. ac_file=1 # Number of current file.
  2228. ac_beg=1 # First line for current file.
  2229. ac_end=$ac_max_sed_cmds # Line after last line for current file.
  2230. ac_more_lines=:
  2231. ac_sed_cmds=""
  2232. while $ac_more_lines; do
  2233.   if test $ac_beg -gt 1; then
  2234.     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  2235.   else
  2236.     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  2237.   fi
  2238.   if test ! -s conftest.s$ac_file; then
  2239.     ac_more_lines=false
  2240.     rm -f conftest.s$ac_file
  2241.   else
  2242.     if test -z "$ac_sed_cmds"; then
  2243.       ac_sed_cmds="sed -f conftest.s$ac_file"
  2244.     else
  2245.       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  2246.     fi
  2247.     ac_file=`expr $ac_file + 1`
  2248.     ac_beg=$ac_end
  2249.     ac_end=`expr $ac_end + $ac_max_sed_cmds`
  2250.   fi
  2251. done
  2252. if test -z "$ac_sed_cmds"; then
  2253.   ac_sed_cmds=cat
  2254. fi
  2255. EOF
  2256.  
  2257. cat >> $CONFIG_STATUS <<EOF
  2258.  
  2259. CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
  2260. EOF
  2261. cat >> $CONFIG_STATUS <<\EOF
  2262. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  2263.   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  2264.   case "$ac_file" in
  2265.   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  2266.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  2267.   *) ac_file_in="${ac_file}.in" ;;
  2268.   esac
  2269.  
  2270.   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  2271.  
  2272.   # Remove last slash and all that follows it.  Not all systems have dirname.
  2273.   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  2274.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  2275.     # The file is in a subdirectory.
  2276.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  2277.     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  2278.     # A "../" for each directory in $ac_dir_suffix.
  2279.     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  2280.   else
  2281.     ac_dir_suffix= ac_dots=
  2282.   fi
  2283.  
  2284.   case "$ac_given_srcdir" in
  2285.   .)  srcdir=.
  2286.       if test -z "$ac_dots"; then top_srcdir=.
  2287.       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  2288.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  2289.   *) # Relative path.
  2290.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  2291.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  2292.   esac
  2293.  
  2294.  
  2295.   echo creating "$ac_file"
  2296.   rm -f "$ac_file"
  2297.   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  2298.   case "$ac_file" in
  2299.   *Makefile*) ac_comsub="1i\\
  2300. # $configure_input" ;;
  2301.   *) ac_comsub= ;;
  2302.   esac
  2303.  
  2304.   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  2305.   sed -e "$ac_comsub
  2306. s%@configure_input@%$configure_input%g
  2307. s%@srcdir@%$srcdir%g
  2308. s%@top_srcdir@%$top_srcdir%g
  2309. " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  2310. fi; done
  2311. rm -f conftest.s*
  2312.  
  2313. EOF
  2314. cat >> $CONFIG_STATUS <<EOF
  2315.  
  2316. EOF
  2317. cat >> $CONFIG_STATUS <<\EOF
  2318.  
  2319. exit 0
  2320. EOF
  2321. chmod +x $CONFIG_STATUS
  2322. rm -f CONFIG.STATUS.old
  2323. rm -fr confdefs* $ac_clean_files
  2324. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  2325.  
  2326.